home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / diskmags / 3565-4.665 / dmg-4626 / packed.14 / a_z_b next >
Text File  |  1987-04-21  |  7KB  |  171 lines

  1.  
  2.  
  3.                                A-Z of STOS
  4.                                ~~~~~~~~~~~
  5.                             By Tony Greenwood
  6.                           For STOSSER Diskzine
  7.                           ~~~~~~~~~~~~~~~~~~~~
  8.  
  9.  Before i begin let me just say  HELP!,  Would someone please take over 
  10. this series,  You can see what its all about from the last issue and this 
  11. issue,  Simply write anything you want about the letter of the month, Its 
  12. easy and i really would like someone to take it over,  Just get in  touch 
  13. with  Keefy at the usual address and the first one will get themselves  a 
  14. series  for STOSSER and also the dubious title of being a member  of  the 
  15. STOSSER team, Dont let me down, Write today please,
  16.  
  17. First let me explain that i am not about to go through all the commands 
  18. starting with the letter A.  Well if i did that then i could package it 
  19. and sell it as a book, but then again i am not going to cover  subjects 
  20. that should'nt need covering.  For example when i get to P i will not be 
  21. writing about PRINT, hopefully i will however be writing about things you 
  22. will not find in your STOS manual.  If i do, then i will be explaining 
  23. them a little better than the manual.  You may also find a few of my 
  24. thoughts on certain commands starting with the letter in question. 
  25.  
  26. We covered A in the last issue so we are now on B.  As promised first
  27. off is Borders and the removal of them.
  28.  
  29. Note: as in the manual, n is used to denote any number of your choice 
  30. within the commands limitations.
  31.  
  32. BORDERS ( Removal of )
  33.  
  34. There isn't an actual command in STOS or any other launguge that i am 
  35. aware of that lets you remove the borders.  Neither is there an Extension 
  36. that does it ( Again not that i am aware of ).  But there are a few 
  37. programs that can be loaded into a bank that will suffice, the one i am 
  38. using is quite small and to be truthful i have no idea of what it 
  39. actually does.  I have a feeling that it quickly changes Hertz just 
  40. before and after a VBL.  A lot quicker than Basic could do it, either way 
  41. i am not bothered and it does the job, besides we dont want to get too 
  42. techi do we.  The coder of the program we are going to use is unknown to 
  43. myself, but the following code is by me.
  44.  
  45. On this disk you should find a folder entitled NOBORDER, inside which  
  46. you will find BORD.ASC ( The following routine ),  BORD.BAS ( The routine 
  47. with the prg installed and BORD.MBK ( the prg file to use ).
  48.  
  49.  
  50. 10 mode 0: key off: curs off: click off: hide on: mouse off: update off
  51.  
  52. Line 10 normal set up
  53.  
  54. 20 load "BORD.MBK",10
  55.  
  56. Line 20 loads the prg thats already in a bank
  57.  
  58. 30 A$="STOSSER DISKZINE"+chr$(0) : B$="NO TOP/BOTTOM BORDER ROUTINE"+
  59.    chr$(0)
  60.  
  61. Line  30 assigns a couple of variables for use with the missing link  
  62. text commands.
  63.  
  64. 40 reserve as work 11,43360 : fill start(11) to start(11)+43360,$0
  65.  
  66. Line  40  reserves a bank to fit the larger screen onto and then fills  
  67. it with 0's, that effectively cleans the bank.
  68.  
  69. 50
  70.  
  71. Line 50 not used in this example
  72.  
  73. 60 bcopy 11 to 12 : wait vbl 
  74.  
  75. Line 60 copies to another bank then we can have one for logic and one for 
  76. physic
  77.  
  78. 70 colour 1,$700
  79.  
  80. Line 70 simple set up colour for text befoe assigning the banks to physic 
  81. etc....
  82.  
  83. 80 physic=start(12) : logic=start(11) : wait vbl 
  84.  
  85. Line 80 assigns the physic and logic screens to the two banks
  86.  
  87. 90 call start(10)+28 : wait vbl 
  88.  
  89. Line 90 calls the prg in bank 10.....vola full screen
  90.  
  91. 91 repeat : h=hardkey
  92.  
  93. Line 91 starts a loop
  94.  
  95. 95 for N=0 to 24
  96. 100 text logic,1,varptr(A$),0,N
  97. 120 text logic,1,varptr(A$),24,N
  98. 121 next N
  99. 122 for N=0 to 6
  100. 123 text logic+32000,1,varptr(B$),6,N
  101. 125 next N
  102.  
  103. Lines 95 to 125 just do something, in this instance they place text onto 
  104. the screen, this could have been done at line 50, or a picture could have 
  105. been copied into the bank at logic 0,0 and at logic+32000 0,0
  106.  
  107. 130 screen swap : wait vbl 
  108.  
  109. Line 130 update the screen
  110.  
  111. 140 until H=57 
  112.  
  113. Line 140 waits for the space bar to be pressed then ends the loop.
  114.  
  115. 145 floodpal 0 : wait vbl : call start(10)+28 : wait vbl 
  116. 150 erase 11 : erase 12 : clear key : mouseon : default : end 
  117.  
  118. Line 145 and 50 simply default and erase the banks and ends the program.
  119.  
  120. As you can see i have yet again used the Missing link extension, I did'nt 
  121. have to, but it has more commands available for use with actual address's 
  122. For instance you could'nt have printed any lower than line 23 using 
  123. PRINT, but with the text command you can add bits to logic rather than 
  124. add bits to the print location. 
  125.  
  126. As i say, you could just as easily have placed a picture in the bank at 
  127. line 50, copying the picture from a bank to the new big bank and then 
  128. onto the screen would fill the top border and two thirds of the screen,  
  129. to place a picture underneath you would have to copy it 32000 bytes lower
  130. Lets say you have a picture in bank 7 and a picture in bank 8
  131.  
  132.  50 FASTCOPY START(7),START(11) : FASTCOPY START(8),START(11)+32000
  133.  
  134. Again the FASTCOPY command from the missing link is used.  Some 
  135. experimentation would be neccesary to get two pictures to look right on 
  136. the  screen, but it is possible.  Have a look at the intro to issue 3 
  137. of STOSSER.  This program was used for that screen, although the scroller 
  138. was a mess and not up to standards, it was about ten months ago when i 
  139. made that.
  140.  
  141. You can easily place a nice scroller into the top and if you wanted 
  142. bottom border of this routine, Just place the commands inside the loop 
  143. at lines 91 to 140.  If you use the missing links SCROLLTEXT routine 
  144. then it will be easy enough to place your scroller at LOGIC 0,0 and 
  145. LOGIC+32000 0,n
  146.  
  147. Well all the above should be easy enough for you to follow and to change 
  148. to your own needs.  If you havent got the Missing link (then why not) 
  149. you can always change the commands to suit STOS basic commands. 
  150.  
  151. Note the mouse will stop the routine so always have it turned off using  
  152. MOUSE OFF from MISTY.  If you haven't got MISTY then try 
  153. POKE $FFFCO2,$12 to switch  the  mouse completely  off and 
  154. POKE $FFFCO2,$8 to switch it back on  again.  
  155.  
  156. Remember that HIDE ON simply does exactly what it says, HIDE's IT and 
  157. doesn't actually turn it off.
  158.  
  159.                          ~~~~~~~~~~~~~~~~~~~~~
  160.  
  161. If i am not mistaken its C next,  well that has to be colour.  And maybe 
  162. a few other things..........
  163.  
  164. Keep on STOSSING......!eyB
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.